/*
 * 
 * LegendShop 多用户商城系统
 * 
 *  版权所有,并保留所有权利。
 * 
 */
package com.legendshop.oa.service;

import java.util.List;

import com.legendshop.dao.support.CriteriaQuery;
import com.legendshop.dao.support.PageSupport;
import com.legendshop.oa.model.AttachmentTree;

/**
 * 附件类型Service.
 */
public interface AttachmentTreeService  {

    public List<AttachmentTree> getAttachmentTree(String userName);

    public AttachmentTree getAttachmentTree(Long id);
    
    public void deleteAttachmentTree(AttachmentTree attachmentTree);
    
    public Long saveAttachmentTree(AttachmentTree attachmentTree);

    public void updateAttachmentTree(AttachmentTree attachmentTree);

    public PageSupport getAttachmentTree(CriteriaQuery cq);
    
    /** 根据父节点查询所有子节点 **/
    public List<AttachmentTree> getAttachmentTreeByPid(Long pId,String userName);

	public void updateAttmntTreeNameById(Integer id, String name);

	public AttachmentTree getAttachmentTree(Long treeId, Long shopId);

	public List<AttachmentTree> getAllChildByTreeId(Long treeId);

	public void deleteAttachmentTree(List<AttachmentTree> attmntTreeList);
}
